<template>
  <div class="login-account">
    <el-form :model="account" :rules="rules">
      <el-form-item label="账号" prop="userName">
        <el-input v-model="account.userName"></el-input>
      </el-form-item>
      <el-form-item label="密码" prop="password">
        <el-input v-model="account.password"></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup>
import { reactive } from "vue";
const account = reactive({
  userName: "",
  password: "",
});

const rules = {
  userName: [{ required: true, message: "账号不能为空", trigger: "blur" }],
  password: [{ required: true, message: "密码不能为空", trigger: "blur" }],
};
</script>

<style scoped></style>
